<?php

/**
 * RelatedProductColor form.
 *
 * @package    trunk
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class RelatedProductColorAdminForm extends BaseRelatedProductColorForm
{
  public function configure()
  {
      unset ($this['product_id']);
      
  }
    protected function createMediaFormForImageId() {
        // get the DmMedia form
        $form = parent::createMediaFormForImageId();

        // choose mime types allowed
        $form->setMimeTypeWhiteList(array(
                'image/jpeg',
                'image/png',
                'image/jpg',
                'image/gif'
        ));
        unset($form['legend'], $form['author'], $form['license']);
        return $form;
    }
}
